<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 
	xmlns="http://java.sun.com/xml/ns/j2ee" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
	http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	
	 <!-- 404 页面不存在错误 
	<error-page>
		<error-code>404</error-code>
		<location>/Error404.jsp</location>
	</error-page>-->
	<!-- 500 服务器内部错误
	<error-page>
		<error-code>500</error-code>
		<location>/Error500.jsp</location>
	</error-page>
	 -->
	 
	 
   <listener>
        <listener-class>com.expense.listener.DbBackUpListener</listener-class>
    </listener>	 
    
   <filter> 
        <filter-name>charSet</filter-name> 
        <filter-class>com.expense.filter.CharSetFilter</filter-class> 
   </filter>
   <filter-mapping> 
       <filter-name>charSet</filter-name> 
       <url-pattern>/*</url-pattern>
   </filter-mapping>
   
   <filter> 
        <filter-name>isLogin</filter-name> 
        <filter-class>com.expense.filter.SessionFilter</filter-class> 
   </filter>
   <filter-mapping> 
       <filter-name>isLogin</filter-name> 
       <url-pattern>*.servlet</url-pattern>
   </filter-mapping>
   
   <!-- DWR 配置 -->
	<servlet>
		<servlet-name>dwr</servlet-name>
		<servlet-class>
			org.directwebremoting.servlet.DwrServlet
		</servlet-class>
		<init-param>
			<param-name>debug</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>logLevel</param-name>
			<param-value>warn</param-value>
		</init-param>
		<init-param>
			<param-name>crossDomainSessionSecurity</param-name>
			<param-value>false</param-value>
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>dwr</servlet-name>
		<url-pattern>/dwr/*</url-pattern>
	</servlet-mapping>
    <!-- MessageServlet -->
	<servlet>
			<servlet-name>MessageServlet</servlet-name>
			<servlet-class>com.expense.servlet.message.MessageServlet</servlet-class>
	</servlet>

	<servlet-mapping>
		<servlet-name>MessageServlet</servlet-name>
		<url-pattern>/message/MessageServlet.servlet</url-pattern>
	</servlet-mapping>
  <welcome-file-list>
    <welcome-file>login.html</welcome-file>
  </welcome-file-list>
	
	
	
	
	
	
   
  <servlet>
    <servlet-name>ToRegisterUserServlet</servlet-name>
    <servlet-class>com.expense.servlet.sysMng.ToRegisterUserServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>LeftTreeServlet</servlet-name>
    <servlet-class>com.expense.servlet.sysMng.LeftTreeServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>UserInfoListServlet</servlet-name>
    <servlet-class>com.expense.servlet.sysMng.UserInfoListServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>LoginLogoutServlet</servlet-name>
    <servlet-class>com.expense.servlet.sysMng.LoginLogoutServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>ExpensesInfoServlet</servlet-name>
    <servlet-class>com.expense.servlet.expensesInfo.ExpensesInfoServlet</servlet-class>
  </servlet>








 
  <servlet-mapping>
    <servlet-name>ToRegisterUserServlet</servlet-name>
    <url-pattern>/ToRegisterUser.servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>LeftTreeServlet</servlet-name>
    <url-pattern>/LeftTree.servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>UserInfoListServlet</servlet-name>
    <url-pattern>/UserInfoList.servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>LoginLogoutServlet</servlet-name>
    <url-pattern>/LoginLogout.servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>ExpensesInfoServlet</servlet-name>
    <url-pattern>/ExpensesInfoServlet.servlet</url-pattern>
  </servlet-mapping>
  
  
  
 
</web-app>
